package com.ruiyian.bridge.opreations.service.impl;

import com.ruiyian.bridge.opreations.domain.Sms;
import com.ruiyian.bridge.opreations.mapper.SmsMapper;
import com.ruiyian.bridge.opreations.service.SmsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author chong
 * @email 673426164@qq.com
 * @create 2022/5/7
 * Desc: 短信接口
 */
@Service
public class SmsServiceImpl implements SmsService {

    @Autowired
    private SmsMapper smsMapper;

    /**
     * 列表
     * @param sms
     * @return
     */
    @Override
    public List<Sms> getList(Sms sms) {
        return smsMapper.getList(sms);
    }

    @Override
    public Sms getOne(String id) {
        return smsMapper.getOne(id);
    }

    @Override
    public void update(Sms sms) {
        smsMapper.update(sms);
    }
}
